package com.evan.designpatterns.decorator.battercake.v2;

/**
 * @author :liujiapeng01
 * @date :2019-03-19 14:41
 **/
public class BaseBatterCakeDecorator extends AbstractBatterCake {

    private AbstractBatterCake batterCake;

    public BaseBatterCakeDecorator(AbstractBatterCake batterCake) {
        this.batterCake = batterCake;
    }

    @Override
    protected String getMsg() {
        return this.batterCake.getMsg();
    }

    @Override
    protected int getPrice() {
        return this.batterCake.getPrice();
    }
}
